package cn.gson.springboot.model.mapper;


import cn.gson.springboot.model.pojos.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("cusMapper")
public interface CustomerMapper {
    public List<Customer> selectAllCustomer();

    public List<Customer> selectCustomerByEmp(Integer deptId,Integer type);

    public List<Customer> selectCustomerByFuzzyEmp(Integer deptId,String customerName,Integer type);

    public List<Customer> selectAllCustomerByType(Integer customerType);

    public List<Customer> selectAllCustomerByEmpId(Integer empId);

    public List<Customer> selectOtherCustomerByEmpId(Integer empId);

    public List<Customer> selectCustomerBySearchValue(String searchValue);

    public List<Customer> selectAllCustomerAndContract();

    public List<Map<String,Object>> customerNumberByLifeCycle();

    public List<Map<String,Object>> customerNumberByFrom();

    public List<Map<String,Object>> myCustomerNumberByLifeCycle(Integer empId);

    public List<Map<String,Object>> myCustomerNumberByFrom(Integer empId);

    public List<Map<String,Object>> contractNumberByAll();

    public List<Map<String,Object>> contractNumberByEmp(Integer empId);
}
